package com.geline.mybatisplus.annotation;

import java.lang.annotation.*;

/**
 * 标识加解密的字段属性
 * 使用方式：在Entity属性上添加
 *      @DSLocked
 *      @DSLocked(value = "MD5")
 *      @DSLocked(value = "SM4", likeKey = "originColumn")
 *
 * @author: mx
 * @date: 2024-12-13 09:31
 */
@Documented
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DSLocked {

    //加密方式LockedType(MD5, SM4)
    String value() default "MD5";

    //加密key
    String secretKey() default "EncryptField";

    //模糊匹配字段
    String likeKey() default "";
}
